// Lock.h: interface for the CLock class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LOCK_H__65A13409_37B6_459F_AA7A_B291FC347FAD__INCLUDED_)
#define AFX_LOCK_H__65A13409_37B6_459F_AA7A_B291FC347FAD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CCSLock
{
	CRITICAL_SECTION m_cs;
public:
	void Unlock();
	void Lock();
	CCSLock();
	~CCSLock();
};

class CLock  
{
	CCSLock & m_cs;
public:
	CLock( CCSLock & cs );
	virtual ~CLock();

};

#endif // !defined(AFX_LOCK_H__65A13409_37B6_459F_AA7A_B291FC347FAD__INCLUDED_)
